package com.pt25.base.util;


import org.apache.commons.lang3.StringUtils;

public class StrUtil {

    public static Boolean isNotBlank(String str) {
        return StringUtils.isNotBlank(str);
    }

    public static Boolean isBlank(String str) {
        return StringUtils.isBlank(str);
    }

    public static Boolean isNotEmpty(String str) {
        return StringUtils.isNotEmpty(str);
    }

    public static Boolean isEmpty(String str) {
        return StringUtils.isEmpty(str);
    }

    /**
     * 首字母转大写
     */
    public static String capitalizeFirstLetter(String word) {
        if (word == null || word.isEmpty()) {
            return word;
        }
        // 获取首字母并转为大写
        char firstChar = Character.toUpperCase(word.charAt(0));
        // 获取余下部分
        String remainingChars = word.substring(1);
        // 拼接并返回结果
        return firstChar + remainingChars;
    }


}
